|
|
|
|
|
|
|
If intGlobalErr = True Then
GoTo SQLFileProcessExit
End If
'
Line Input #intSQLFileHandle, strLine
intLine = intLine + 1
strLine = Trim(strLine) + " "
If Len(strLine) <> 0 Then
cToken = GetToken(strLine)
If Right(cToken, 1) = ";" Then
cToken = Left(cToken, Len(cToken) - 1)
End If
'
SQLVBMain.lblProgress.Caption = strLine
DoEvents
Select Case UCase(cToken)
Case Is = "//"
' no action - comment line
Case Is = "DBCONNECT"
SQLdbConnect
Case Is = "DBVERSION"
SQLdbVersion
Case Is = "DBOPEN"
SQLdbOpen
Case Is = "DBMAKE"
SQLdbMake
Case Is = "DBCLOSE"
SQLdbClose
Case Is = "DBQUIET"
SQLQuietFlag
Case Else
strSQLLine = strSQLLine + strLine
If Right(strLine, 2) = "; " Then
SQLDoCommand
strSQLLine = ""
End If
End Select
End If
Wend
GoTo SQLFileProcessExit
'
SQLFileProcessErr:
ErrMsg Err, Error$, intLine, strLine, "SQLFileProcess"
InitApp
'
SQLFileProcessExit:
'
End Sub |
|
|
|
|
|